
#ifndef SOUND_H
#define SOUND_H
#include <qobject.h>

#ifdef ALSA
#include <alsa/asoundlib.h>
#else
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#endif

class Sound:public QObject
{
   Q_OBJECT			///
 public:
   Sound (QObject * parent = 0, const char *name = 0);
    ~Sound ();
   int volume ();

 private:
#ifdef ALSA
     snd_mixer_t * handle;
   snd_mixer_elem_t *elem;
#else
   int handle;
#endif

   public slots:		////
   void volume (int);

};

#endif
